#ifndef _HASH_H_
#define _HASH_H_

#include <stdio.h>
#include <stdlib.h>
#define TABLE_SIZE              10
/*hash list item*/
typedef struct HashNode
{
    char *key;
    int value;
    struct HashNode *next;
}HashNode;
/*hash list struct (array+link list) */
typedef struct HashTable
{
    HashNode *buckets[TABLE_SIZE];
}HashTable;



HashTable* hash_create_table(unsigned char *status);
void hash_insert_table(HashTable *table,const char *key,int value);
int* hash_search_node(HashTable *table,const char *key);

void hash_delete_node(HashTable *table,const char *key);


#endif

